﻿/*
 * Processor.cpp
 *
 *  Created on: 2016年2月22日
 *      Author: Administrator
 */

#include "processor.h"

#include "thread/thread.h"
#include "process/conf/def.h"

namespace eyas{
namespace process{

processor::processor()
	:threadPoolPtr_(new eyas::thread::thread_pool(eyas::thread::service::instance()->io_service(), eyas::thread::service::instance()->concurrent())){
}

processor::~processor() {
}

eyas::thread::sequential_task_ptr processor::create_sequential_task(){
	return eyas::thread::sequential_task_ptr(new eyas::thread::sequential_task());
}


void init(){
	eyas::thread::init();
	processor::instance();
}
void clean(){

}

eyas::thread::sequential_task_ptr create_sequential_task(){
	return processor::instance()->create_sequential_task();
}


}
}
